﻿@model IEnumerable<KinoDB.Viewmodels.Internal.DutyManagement.DutyManagementViewModel>
@{
    ViewBag.Title = "DutyManagement";
}

<h2>DutyManagement</h2>

<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Id)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Id)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.ActionLink("Neuer Dienst", "CreateDuty", new { id=item.Id }) |
            @Html.ActionLink("Neue Zuständigkeit", "CreateResponsibility", new { id=item.Id }) |
            @Html.ActionLink("Overview", "DutyRoster", new { id=item.Id })
        </td>
    </tr>
}

</table>